package com.biz.primus.model.promotion.vo;

import com.biz.primus.model.promotion.enums.LuckyOrderTypeEnum;
import com.biz.primus.model.promotion.enums.PromotionGiftTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 首单有礼促销Vo
 *
 * @author david-liu
 */
@Getter
@Setter
@ApiModel(value = "首单有礼促销Vo")
public class LuckyOrderPromotionVo extends BasePromotionVo {
    private static final long serialVersionUID = 2787841567105019747L;

    @ApiModelProperty("下单有礼类型(按照时间段设置中奖还是按照当日下单数量设置中奖)")
    private LuckyOrderTypeEnum luckyOrderType;

    @ApiModelProperty("赠品类型")
    private PromotionGiftTypeEnum giftType;

    @ApiModelProperty("奖券集合")
    private List<PromotionCouponVo> giftCoupons;

    @ApiModelProperty("赠送积分数量")
    private Integer pointQuantity;

    @ApiModelProperty("活动门槛金额")
    private Integer limitAmount;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("下单有礼时间段开始时间")
    private LocalDateTime luckyOrderStartTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("下单有礼时间段结束时间")
    private LocalDateTime luckyOrderEndTime;

    @ApiModelProperty("中奖订单数(当日第xx单中奖)")
    private List<Integer> luckyOrderSequence;

    @ApiModelProperty("下单时间段内中奖数限制")
    private Integer lucyOrderTimeSectionLuckyQuantity;


}
